home *** CD-ROM | disk | FTP | other *** search
- package engine.levelData
- {
- import copy.CopyBank;
- import engine.WorldScene;
- import engine.dynamicObjects.*;
-
- public class Level_09 extends LevelData
- {
-
-
- public function Level_09()
- {
- super();
- _goalParameters = new Array();
- }
-
- override public function buildLevel() : *
- {
- var i:* = undefined;
- var ring:* = undefined;
- var fuelIcon:* = undefined;
- var goalObj:Object = null;
- var missionObj:Object = null;
- var indian:* = undefined;
- super.buildLevel();
- for(i = 0; i < 20; i++)
- {
- indian = new Indian();
- indian.x = 400 + i * 200;
- indian.y = 710;
- indian.LobMode = true;
- WorldScene.Instance.GameplayObjects.push(indian);
- WorldScene.Instance.Indians.push(indian);
- }
- for(i = 0; i < 5; i++)
- {
- ring = new GoalRing();
- ring.x = 400 + i * 100;
- ring.y = 550 + Math.sin(i * (Math.PI / 5)) * 200;
- ring.rOffset = i * -(Math.PI / 5) + Math.PI / 2;
- ring.SinAmp = 0.01;
- WorldScene.Instance.GameplayObjects.push(ring);
- }
- for(i = 0; i < 5; i++)
- {
- ring = new GoalRing();
- ring.x = 400 + i * 100;
- ring.y = 500 + Math.sin(i * (Math.PI / 5)) * -200;
- ring.rOffset = i * (Math.PI / 5) + Math.PI / 2;
- ring.SinAmp = 0.01;
- WorldScene.Instance.GameplayObjects.push(ring);
- }
- for(i = 0; i < 5; i++)
- {
- ring = new GoalRing();
- ring.x = 2400 + i * 100;
- ring.y = 550 + Math.sin(i * (Math.PI / 5)) * 200;
- ring.rOffset = i * -(Math.PI / 5) + Math.PI / 2;
- ring.SinAmp = 0.01;
- WorldScene.Instance.GameplayObjects.push(ring);
- }
- for(i = 0; i < 5; i++)
- {
- ring = new GoalRing();
- ring.x = 2400 + i * 100;
- ring.y = 500 + Math.sin(i * (Math.PI / 5)) * -200;
- ring.rOffset = i * (Math.PI / 5) + Math.PI / 2;
- ring.SinAmp = 0.01;
- WorldScene.Instance.GameplayObjects.push(ring);
- }
- fuelIcon = new FuelIcon();
- fuelIcon.x = 1000;
- fuelIcon.y = 200;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- fuelIcon = new FuelIcon();
- fuelIcon.x = 1000;
- fuelIcon.y = 600;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- _missionDescription = CopyBank.Instance.MissionDesc_Rings;
- goalObj = {
- "Type":"Ring",
- "Count":20
- };
- _goalParameters.push(goalObj);
- missionObj = {
- "Description":_missionDescription,
- "BoundsX":_missionBoundsX,
- "BoundsHint":_missionBoundsHint,
- "GoalParamaters":_goalParameters,
- "PrimaryGoalType":"Rings",
- "StartLoc":{
- "x":50,
- "y":850
- }
- };
- WorldScene.Instance.setMissionDetails(missionObj);
- }
- }
- }
-